#ifndef __MEMBERMGR_H__
#define __MEMBERMGR_H__

#include "protocol.h"
#include "util.h"
#include "DBMgr.h"


class MemberMgr
{
public:
    MemberMgr();
    int Init();
    int GetIDByName(DBMgr* dbMgr, const char* name);
    int AddMember(DBMgr* dbMgr, Member* pMember);
    int GetAllMembersCount();
    int SelectMember(Member* pMember);
    int GetVIPMembersCount();
};

#endif // __MEMBERMGR_H__
